PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFDocument Class / save Method / save(String,boolean) Method
File where the PDF document is saved.
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
In This Topic
    save(String,boolean) Method
    In This Topic
    Saves the PDF document to a file.
    Syntax
    public void save( 
       java.lang.String fileName,
       boolean enableObjectCompression
    )

    Parameters

    fileName
    File where the PDF document is saved.
    enableObjectCompression
    When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
    Exceptions
    ExceptionDescription
    if a java.io.IOException appears during the save operation.
    See Also